pub struct WorkspaceHandle { /* private fields */ }Expand description
The records of the window’s workspace, for what settles after the view
that asked for them: a reply, or a message another device sent
(RecordEnv::workspace_handle).
Implementations§
Source§impl WorkspaceHandle
impl WorkspaceHandle
Sourcepub fn record<P: Resource>(
&self,
owner: &'static str,
id: &str,
) -> Option<WorkspaceRecord<P>>
pub fn record<P: Resource>( &self, owner: &'static str, id: &str, ) -> Option<WorkspaceRecord<P>>
The record id of P that owner keeps: opened, created where
nothing holds it yet, and followed change by change. None where it
cannot be opened.
Sourcepub fn holds_record<P: Resource>(&self, owner: &'static str, id: &str) -> bool
pub fn holds_record<P: Resource>(&self, owner: &'static str, id: &str) -> bool
Whether the record id of P that owner keeps is held already,
without opening or creating it.
Sourcepub fn chain_beside<P: Chained>(
&self,
owner: &'static str,
base: &WorkspaceRecord<P::Base>,
) -> Option<Chain<P>>
pub fn chain_beside<P: Chained>( &self, owner: &'static str, base: &WorkspaceRecord<P::Base>, ) -> Option<Chain<P>>
The chain of P kept beside one of the workspace’s records
(Chained::chain_beside): the messages of one direct conversation,
in parts of the record the two people share, opened in the store that
keeps that record. None where it cannot be opened.
Sourcepub fn wake(&self) -> Option<&WakeHandle>
pub fn wake(&self) -> Option<&WakeHandle>
What wakes the window: for an answer that arrives later.
Trait Implementations§
Source§impl Clone for WorkspaceHandle
impl Clone for WorkspaceHandle
Source§fn clone(&self) -> WorkspaceHandle
fn clone(&self) -> WorkspaceHandle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for WorkspaceHandle
impl !RefUnwindSafe for WorkspaceHandle
impl !Send for WorkspaceHandle
impl !Sync for WorkspaceHandle
impl Unpin for WorkspaceHandle
impl UnsafeUnpin for WorkspaceHandle
impl !UnwindSafe for WorkspaceHandle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more