Trait sourceview5::prelude::DatagramBasedExtManual

source ·
pub trait DatagramBasedExtManual: Sized + Sealed + IsA<DatagramBased> {
    // Provided methods
    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> { ... }
    fn condition_wait(
        &self,
        condition: IOCondition,
        timeout: Option<Duration>,
        cancellable: Option<&impl IsA<Cancellable>>,
    ) -> Result<(), Error> { ... }
    fn receive_messages<'v, V, C>(
        &self,
        messages: &mut [InputMessage<'_>],
        flags: i32,
        timeout: Option<Duration>,
        cancellable: Option<&C>,
    ) -> Result<usize, Error>
       where V: IntoIterator<Item = &'v mut [&'v mut [u8]]>,
             C: IsA<Cancellable> { ... }
    fn send_messages<C>(
        &self,
        messages: &mut [OutputMessage<'_>],
        flags: i32,
        timeout: Option<Duration>,
        cancellable: Option<&C>,
    ) -> Result<usize, Error>
       where C: IsA<Cancellable> { ... }
}

Provided Methods§

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>,

source

fn condition_wait( &self, condition: IOCondition, timeout: Option<Duration>, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<(), Error>

source

fn receive_messages<'v, V, C>( &self, messages: &mut [InputMessage<'_>], flags: i32, timeout: Option<Duration>, cancellable: Option<&C>, ) -> Result<usize, Error>
where V: IntoIterator<Item = &'v mut [&'v mut [u8]]>, C: IsA<Cancellable>,

source

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

Object Safety§

This trait is not object safe.

Implementors§