Trait sourceview5::prelude::SocketExtManual

source ·
pub trait SocketExtManual: Sized + Sealed + IsA<Socket> {
Show 15 methods // Provided methods fn receive<B, C>( &self, buffer: B, cancellable: Option<&C>, ) -> Result<usize, Error> where B: AsMut<[u8]>, C: IsA<Cancellable> { ... } fn receive_from<B, C>( &self, buffer: B, cancellable: Option<&C>, ) -> Result<(usize, SocketAddress), Error> where B: AsMut<[u8]>, C: IsA<Cancellable> { ... } fn receive_message<C>( &self, address: Option<&mut Option<SocketAddress>>, vectors: &mut [InputVector<'_>], control_messages: Option<&mut SocketControlMessages>, flags: i32, cancellable: Option<&C>, ) -> Result<(usize, i32), Error> where C: IsA<Cancellable> { ... } fn receive_messages<C>( &self, messages: &mut [InputMessage<'_>], flags: i32, cancellable: Option<&C>, ) -> Result<usize, Error> where C: IsA<Cancellable> { ... } fn receive_with_blocking<B, C>( &self, buffer: B, blocking: bool, cancellable: Option<&C>, ) -> Result<usize, Error> where B: AsMut<[u8]>, C: IsA<Cancellable> { ... } fn send<B, C>( &self, buffer: B, cancellable: Option<&C>, ) -> Result<usize, Error> where B: AsRef<[u8]>, C: IsA<Cancellable> { ... } fn send_message<P, C>( &self, address: Option<&P>, vectors: &[OutputVector<'_>], messages: &[SocketControlMessage], flags: i32, cancellable: Option<&C>, ) -> Result<usize, Error> where P: IsA<SocketAddress>, C: IsA<Cancellable> { ... } fn send_message_with_timeout<P, C>( &self, address: Option<&P>, vectors: &[OutputVector<'_>], messages: &[SocketControlMessage], flags: i32, timeout: Option<Duration>, cancellable: Option<&C>, ) -> Result<(PollableReturn, usize), Error> where P: IsA<SocketAddress>, C: IsA<Cancellable> { ... } fn send_messages<C>( &self, messages: &mut [OutputMessage<'_>], flags: i32, cancellable: Option<&C>, ) -> Result<usize, Error> where C: IsA<Cancellable> { ... } fn send_to<B, P, C>( &self, address: Option<&P>, buffer: B, cancellable: Option<&C>, ) -> Result<usize, Error> where B: AsRef<[u8]>, P: IsA<SocketAddress>, C: IsA<Cancellable> { ... } fn send_with_blocking<B, C>( &self, buffer: B, blocking: bool, cancellable: Option<&C>, ) -> Result<usize, Error> where B: AsRef<[u8]>, C: IsA<Cancellable> { ... } fn fd<T>(&self) -> T where T: FromRawFd { ... } fn create_source<F, C>( &self, condition: IOCondition, cancellable: Option<&C>, name: Option<&str>, priority: Priority, func: F, ) -> Source where F: FnMut(&Self, IOCondition) -> ControlFlow + 'static, C: IsA<Cancellable> { ... } fn create_source_future<C>( &self, condition: IOCondition, cancellable: Option<&C>, priority: Priority, ) -> Pin<Box<dyn Future<Output = IOCondition>>> where C: IsA<Cancellable> { ... } fn create_source_stream<C>( &self, condition: IOCondition, cancellable: Option<&C>, priority: Priority, ) -> Pin<Box<dyn Stream<Item = IOCondition>>> where C: IsA<Cancellable> { ... }
}

Provided Methods§

source

fn receive<B, C>( &self, buffer: B, cancellable: Option<&C>, ) -> Result<usize, Error>
where B: AsMut<[u8]>, C: IsA<Cancellable>,

source

fn receive_from<B, C>( &self, buffer: B, cancellable: Option<&C>, ) -> Result<(usize, SocketAddress), Error>
where B: AsMut<[u8]>, C: IsA<Cancellable>,

source

fn receive_message<C>( &self, address: Option<&mut Option<SocketAddress>>, vectors: &mut [InputVector<'_>], control_messages: Option<&mut SocketControlMessages>, flags: i32, cancellable: Option<&C>, ) -> Result<(usize, i32), Error>
where C: IsA<Cancellable>,

source

fn receive_messages<C>( &self, messages: &mut [InputMessage<'_>], flags: i32, cancellable: Option<&C>, ) -> Result<usize, Error>
where C: IsA<Cancellable>,

source

fn receive_with_blocking<B, C>( &self, buffer: B, blocking: bool, cancellable: Option<&C>, ) -> Result<usize, Error>
where B: AsMut<[u8]>, C: IsA<Cancellable>,

source

fn send<B, C>(&self, buffer: B, cancellable: Option<&C>) -> Result<usize, Error>
where B: AsRef<[u8]>, C: IsA<Cancellable>,

source

fn send_message<P, C>( &self, address: Option<&P>, vectors: &[OutputVector<'_>], messages: &[SocketControlMessage], flags: i32, cancellable: Option<&C>, ) -> Result<usize, Error>

source

fn send_message_with_timeout<P, C>( &self, address: Option<&P>, vectors: &[OutputVector<'_>], messages: &[SocketControlMessage], flags: i32, timeout: Option<Duration>, cancellable: Option<&C>, ) -> Result<(PollableReturn, usize), Error>

source

fn send_messages<C>( &self, messages: &mut [OutputMessage<'_>], flags: i32, cancellable: Option<&C>, ) -> Result<usize, Error>
where C: IsA<Cancellable>,

source

fn send_to<B, P, C>( &self, address: Option<&P>, buffer: B, cancellable: Option<&C>, ) -> Result<usize, Error>
where B: AsRef<[u8]>, P: IsA<SocketAddress>, C: IsA<Cancellable>,

source

fn send_with_blocking<B, C>( &self, buffer: B, blocking: bool, cancellable: Option<&C>, ) -> Result<usize, Error>
where B: AsRef<[u8]>, C: IsA<Cancellable>,

source

fn fd<T>(&self) -> T
where T: FromRawFd,

source

fn create_source<F, C>( &self, condition: IOCondition, cancellable: Option<&C>, name: Option<&str>, priority: Priority, func: F, ) -> Source
where F: FnMut(&Self, IOCondition) -> ControlFlow + 'static, C: IsA<Cancellable>,

source

fn create_source_future<C>( &self, condition: IOCondition, cancellable: Option<&C>, priority: Priority, ) -> Pin<Box<dyn Future<Output = IOCondition>>>
where C: IsA<Cancellable>,

source

fn create_source_stream<C>( &self, condition: IOCondition, cancellable: Option<&C>, priority: Priority, ) -> Pin<Box<dyn Stream<Item = IOCondition>>>
where C: IsA<Cancellable>,

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<O> SocketExtManual for O
where O: IsA<Socket>,