[−][src]Struct libuv::handles::prepare::PrepareHandle
Prepare handles will run the given callback once per loop iteration, right before polling for i/o.
Implementations
impl PrepareHandle
[src]
pub fn new(r#loop: &Loop) -> Result<PrepareHandle>
[src]
Create and initialize a new prepare handle
pub fn start<CB: Into<PrepareCB<'static>>>(&mut self, cb: CB) -> Result<()>
[src]
Start the handle with the given callback. This function always succeeds, except when cb is ().
pub fn stop(&mut self) -> Result<()>
[src]
Stop the handle, the callback will no longer be called. This function always succeeds.
Trait Implementations
impl Clone for PrepareHandle
[src]
fn clone(&self) -> PrepareHandle
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for PrepareHandle
[src]
impl From<PrepareHandle> for Handle
[src]
fn from(prepare: PrepareHandle) -> Handle
[src]
impl HandleTrait for PrepareHandle
[src]
fn is_active(&self) -> bool
[src]
fn is_closing(&self) -> bool
[src]
fn close<CB: Into<CloseCB<'static>>>(&mut self, cb: CB)
[src]
fn ref(&mut self)
[src]
fn unref(&mut self)
[src]
fn has_ref(&self) -> bool
[src]
fn send_buffer_size(&mut self, value: i32) -> Result<i32>
[src]
fn recv_buffer_size(&mut self, value: i32) -> Result<i32>
[src]
fn get_fileno(&self) -> Result<OsFile>
[src]
fn get_loop(&self) -> Loop
[src]
fn get_type(&self) -> HandleType
[src]
impl ToHandle for PrepareHandle
[src]
impl TryFrom<Handle> for PrepareHandle
[src]
Auto Trait Implementations
impl RefUnwindSafe for PrepareHandle
impl !Send for PrepareHandle
impl !Sync for PrepareHandle
impl Unpin for PrepareHandle
impl UnwindSafe for PrepareHandle
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>,