[−][src]Struct queen::queen::Callback
Fields
accept_fn: Option<Box<dyn Fn(&Session, &mut T) -> bool + Send>>
remove_fn: Option<Box<dyn Fn(&Session, &mut T) + Send>>
recv_fn: Option<Box<dyn Fn(&Session, &mut Message, &mut T) -> bool + Send>>
send_fn: Option<Box<dyn Fn(&Session, &mut Message, &mut T) -> bool + Send>>
auth_fn: Option<Box<dyn Fn(&Session, &mut Message, &mut T) -> bool + Send>>
attach_fn: Option<Box<dyn Fn(&Session, &mut Message, &mut T) -> bool + Send>>
detach_fn: Option<Box<dyn Fn(&Session, &mut Message, &mut T) + Send>>
emit_fn: Option<Box<dyn Fn(&Session, &mut Message, &mut T) -> bool + Send>>
kill_fn: Option<Box<dyn Fn(&Session, &mut Message, &mut T) -> bool + Send>>
Methods
impl<T> Callback<T>
[src]
pub fn new() -> Callback<T>
[src]
pub fn accept<F>(&mut self, f: F) where
F: Fn(&Session, &mut T) -> bool + Send + 'static,
[src]
F: Fn(&Session, &mut T) -> bool + Send + 'static,
pub fn remove<F>(&mut self, f: F) where
F: Fn(&Session, &mut T) + Send + 'static,
[src]
F: Fn(&Session, &mut T) + Send + 'static,
pub fn recv<F>(&mut self, f: F) where
F: Fn(&Session, &mut Message, &mut T) -> bool + Send + 'static,
[src]
F: Fn(&Session, &mut Message, &mut T) -> bool + Send + 'static,
pub fn send<F>(&mut self, f: F) where
F: Fn(&Session, &mut Message, &mut T) -> bool + Send + 'static,
[src]
F: Fn(&Session, &mut Message, &mut T) -> bool + Send + 'static,
pub fn auth<F>(&mut self, f: F) where
F: Fn(&Session, &mut Message, &mut T) -> bool + Send + 'static,
[src]
F: Fn(&Session, &mut Message, &mut T) -> bool + Send + 'static,
pub fn attach<F>(&mut self, f: F) where
F: Fn(&Session, &mut Message, &mut T) -> bool + Send + 'static,
[src]
F: Fn(&Session, &mut Message, &mut T) -> bool + Send + 'static,
pub fn detach<F>(&mut self, f: F) where
F: Fn(&Session, &mut Message, &mut T) + Send + 'static,
[src]
F: Fn(&Session, &mut Message, &mut T) + Send + 'static,
pub fn emit<F>(&mut self, f: F) where
F: Fn(&Session, &mut Message, &mut T) -> bool + Send + 'static,
[src]
F: Fn(&Session, &mut Message, &mut T) -> bool + Send + 'static,
pub fn kill<F>(&mut self, f: F) where
F: Fn(&Session, &mut Message, &mut T) -> bool + Send + 'static,
[src]
F: Fn(&Session, &mut Message, &mut T) -> bool + Send + 'static,
Trait Implementations
Auto Trait Implementations
impl<T> !RefUnwindSafe for Callback<T>
impl<T> Send for Callback<T>
impl<T> !Sync for Callback<T>
impl<T> Unpin for Callback<T>
impl<T> !UnwindSafe for Callback<T>
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, 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,