pub struct TelephoneCenter<Call: CallCenter> { /* private fields */ }Expand description
The telephone center can be used to handle calls coming from callees (phones)
Implementations§
Source§impl<Call: CallCenter> TelephoneCenter<Call>
impl<Call: CallCenter> TelephoneCenter<Call>
pub fn new() -> TelephoneCenter<Call>
pub fn make_phone(&self) -> Phone<Call>
pub async fn handle_request(&mut self) -> Result<Call::CallEnum, Error>
Trait Implementations§
Source§impl<Call: CallCenter> Default for TelephoneCenter<Call>
impl<Call: CallCenter> Default for TelephoneCenter<Call>
Auto Trait Implementations§
impl<Call> Freeze for TelephoneCenter<Call>
impl<Call> RefUnwindSafe for TelephoneCenter<Call>where
Call: RefUnwindSafe,
impl<Call> Send for TelephoneCenter<Call>where
Call: Send,
impl<Call> Sync for TelephoneCenter<Call>where
Call: Sync,
impl<Call> Unpin for TelephoneCenter<Call>where
Call: Unpin,
impl<Call> UnwindSafe for TelephoneCenter<Call>where
Call: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more