Trait gio::prelude::SocketExtManual[][src]

pub trait SocketExtManual: Sized {
    fn receive<'a, B: AsMut<[u8]>, P: Into<Option<&'a Cancellable>>>(
        &self,
        buffer: B,
        cancellable: P
    ) -> Result<usize, Error>;
fn receive_from<'a, B: AsMut<[u8]>, P: Into<Option<&'a Cancellable>>>(
        &self,
        buffer: B,
        cancellable: P
    ) -> Result<(usize, SocketAddress), Error>;
fn receive_with_blocking<'a, B: AsMut<[u8]>, P: Into<Option<&'a Cancellable>>>(
        &self,
        buffer: B,
        blocking: bool,
        cancellable: P
    ) -> Result<usize, Error>;
fn send<'a, B: AsRef<[u8]>, P: Into<Option<&'a Cancellable>>>(
        &self,
        buffer: B,
        cancellable: P
    ) -> Result<usize, Error>;
fn send_to<'a, 'b, B: AsRef<[u8]>, P: IsA<SocketAddress> + 'a, Q: Into<Option<&'a P>>, R: Into<Option<&'b Cancellable>>>(
        &self,
        address: Q,
        buffer: B,
        cancellable: R
    ) -> Result<usize, Error>;
fn send_with_blocking<'a, B: AsRef<[u8]>, P: Into<Option<&'a Cancellable>>>(
        &self,
        buffer: B,
        blocking: bool,
        cancellable: P
    ) -> Result<usize, Error>;
fn get_fd<T: FromRawFd>(&self) -> T;
fn create_source<'a, 'b, N: Into<Option<&'b str>>, P: Into<Option<&'a Cancellable>>, F>(
        &self,
        condition: IOCondition,
        cancellable: P,
        name: N,
        priority: Priority,
        func: F
    ) -> Source
    where
        F: FnMut(&Self, IOCondition) -> Continue + 'static
; }

Required Methods

Implementors