pub(crate) struct ChannelOwner {
pub(crate) ctx: Weak<Mutex<Context>>,
pub(crate) parent: Option<RemoteWeak>,
pub(crate) typ: Str<ObjectType>,
pub(crate) guid: Str<Guid>,
pub(crate) initializer: Value,
children: Mutex<Vec<RemoteWeak>>,
}Fields§
§ctx: Weak<Mutex<Context>>§parent: Option<RemoteWeak>§typ: Str<ObjectType>§guid: Str<Guid>§initializer: Value§children: Mutex<Vec<RemoteWeak>>Implementations§
Source§impl ChannelOwner
impl ChannelOwner
pub(crate) fn new( ctx: Weak<Mutex<Context>>, parent: RemoteWeak, typ: Str<ObjectType>, guid: Str<Guid>, initializer: Value, ) -> Self
pub(crate) fn new_root() -> Self
pub(crate) fn create_request(&self, method: Str<Method>) -> RequestBody
pub(crate) async fn send_message( &self, r: RequestBody, ) -> Result<WaitData<Result<Result<Arc<Value>, Arc<ErrorMessage>>, Arc<Error>>>, Error>
pub(crate) fn children(&self) -> Vec<RemoteWeak>
pub(crate) fn push_child(&self, c: RemoteWeak)
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ChannelOwner
impl RefUnwindSafe for ChannelOwner
impl Send for ChannelOwner
impl Sync for ChannelOwner
impl Unpin for ChannelOwner
impl UnwindSafe for ChannelOwner
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