pub struct Channel<TSend = InvokeResponseBody> { /* private fields */ }
Expand description
An IPC channel.
Implementations§
Source§impl<TSend> Channel<TSend>
impl<TSend> Channel<TSend>
Trait Implementations§
Source§impl<'de, R: Runtime, TSend: Clone> CommandArg<'de, R> for Channel<TSend>
impl<'de, R: Runtime, TSend: Clone> CommandArg<'de, R> for Channel<TSend>
Source§fn from_command(command: CommandItem<'de, R>) -> Result<Self, InvokeError>
fn from_command(command: CommandItem<'de, R>) -> Result<Self, InvokeError>
Grabs the Webview
from the CommandItem
and returns the associated Channel
.
Source§impl<TSend> NamedType for Channel<TSend>where
TSend: Type,
impl<TSend> NamedType for Channel<TSend>where
TSend: Type,
fn sid() -> SpectaID
Source§fn named_data_type(
type_map: &mut TypeCollection,
generics: &[DataType],
) -> NamedDataType
fn named_data_type( type_map: &mut TypeCollection, generics: &[DataType], ) -> NamedDataType
this is equivalent to Type::inline but returns a NamedDataType instead.
Source§fn definition_named_data_type(type_map: &mut TypeCollection) -> NamedDataType
fn definition_named_data_type(type_map: &mut TypeCollection) -> NamedDataType
this is equivalent to [Type::definition] but returns a NamedDataType instead.
Source§impl<TSend> Type for Channel<TSend>where
TSend: Type,
impl<TSend> Type for Channel<TSend>where
TSend: Type,
Source§fn inline(type_map: &mut TypeCollection, generics: Generics<'_>) -> DataType
fn inline(type_map: &mut TypeCollection, generics: Generics<'_>) -> DataType
Returns the definition of a type using the provided generics. Read more
Source§fn reference(type_map: &mut TypeCollection, generics: &[DataType]) -> Reference
fn reference(type_map: &mut TypeCollection, generics: &[DataType]) -> Reference
Generates a datatype corresponding to a reference to this type,
as determined by its category. Getting a reference to a type implies that
it should belong in the type map (since it has to be referenced from somewhere),
so the output of
definition
will be put into the type map.impl<TSend> Flatten for Channel<TSend>where
TSend: Type,
Auto Trait Implementations§
impl<TSend> Freeze for Channel<TSend>
impl<TSend = InvokeResponseBody> !RefUnwindSafe for Channel<TSend>
impl<TSend> Send for Channel<TSend>where
TSend: Send,
impl<TSend> Sync for Channel<TSend>where
TSend: Sync,
impl<TSend> Unpin for Channel<TSend>where
TSend: Unpin,
impl<TSend = InvokeResponseBody> !UnwindSafe for Channel<TSend>
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