[−][src]Struct runng::protocol::push0::Push0
Push half of push/pull ("pipeline") pattern. See nng_push.
Methods
impl Push0
[src]
pub fn open() -> Result<Self>
[src]
Create a push socket. See nng_push_open.
Trait Implementations
impl AsyncSocket for Push0
[src]
type ContextType = PushAsyncHandle
The type of aynchronous context produced
fn create_async(&self) -> Result<Self::ContextType>
[src]
impl Clone for Push0
[src]
impl Debug for Push0
[src]
impl Dial for Push0
[src]
fn dial(&mut self, url: &str) -> Result<&mut Self>
[src]
fn dial_flags(&mut self, url: &str, flags: SocketFlags) -> Result<&mut Self>
[src]
fn dialer_create(&self, url: &str) -> Result<NngDialer>
[src]
impl GetOpts for Push0
[src]
fn get_bool(&self, option: NngOption) -> Result<bool>
[src]
Get bool
option.
See #get_bool
fn get_int(&self, option: NngOption) -> Result<i32>
[src]
Get i32
option.
See #get_int
fn get_ms(&self, option: NngOption) -> Result<i32>
[src]
Get nng_duration
option.
See #get_ms
fn get_size(&self, option: NngOption) -> Result<usize>
[src]
Get usize
option.
See #get_size
fn get_uint64(&self, option: NngOption) -> Result<u64>
[src]
Get u64
option.
See #get_uint64
fn get_string(&self, option: NngOption) -> Result<NngString>
[src]
Get NngString
option.
See #get_string
impl GetSocket for Push0
[src]
fn socket(&self) -> &NngSocket
[src]
fn socket_mut(&mut self) -> &mut NngSocket
[src]
unsafe fn nng_socket(&self) -> nng_socket
[src]
impl Listen for Push0
[src]
fn listen(&mut self, url: &str) -> Result<&mut Self>
[src]
fn listen_flags(&mut self, url: &str, flags: SocketFlags) -> Result<&mut Self>
[src]
fn listener_create(&self, url: &str) -> Result<NngListener>
[src]
impl SendSocket for Push0
[src]
fn send(&self, data: &[u8]) -> Result<()>
[src]
fn send_flags(&self, data: &[u8], flags: Flags) -> Result<()>
[src]
fn send_zerocopy(&self, data: Alloc) -> Result<(), SendError<Alloc>>
[src]
fn send_zerocopy_flags(
&self,
data: Alloc,
flags: Flags
) -> Result<(), SendError<Alloc>>
[src]
&self,
data: Alloc,
flags: Flags
) -> Result<(), SendError<Alloc>>
fn sendmsg(&self, msg: NngMsg) -> Result<()>
[src]
fn sendmsg_flags(
&self,
msg: NngMsg,
flags: Flags
) -> Result<(), SendError<NngMsg>>
[src]
&self,
msg: NngMsg,
flags: Flags
) -> Result<(), SendError<NngMsg>>
impl SetOpts for Push0
[src]
fn set_bool(&mut self, option: NngOption, value: bool) -> Result<&mut Self>
[src]
Set bool
NngOption.
See #set_bool
fn set_int(&mut self, option: NngOption, value: i32) -> Result<&mut Self>
[src]
See #set_int
fn set_ms(&mut self, option: NngOption, value: i32) -> Result<&mut Self>
[src]
See #set_ms
fn set_size(&mut self, option: NngOption, value: usize) -> Result<&mut Self>
[src]
See #set_size
fn set_uint64(&mut self, option: NngOption, value: u64) -> Result<&mut Self>
[src]
See #set_uint64
fn set_string(&mut self, option: NngOption, value: &str) -> Result<&mut Self>
[src]
See #set_string
fn set_duration(
&mut self,
option: NngOption,
value: Duration
) -> Result<&mut Self>
[src]
&mut self,
option: NngOption,
value: Duration
) -> Result<&mut Self>
impl Socket for Push0
[src]
Auto Trait Implementations
impl RefUnwindSafe for Push0
impl Send for Push0
impl Sync for Push0
impl Unpin for Push0
impl UnwindSafe for Push0
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,