Struct wasmer_wasix::journal::effector::JournalEffector

source ·
pub struct JournalEffector {}
Expand description

The journal effector is an adapter that will be removed in a future refactor. Its purpose is to put the code that does mappings from WASM memory through its abstractions into concrete journal objects that can be stored. Instead of this what should be done is that the syscalls themselves can be represented as a strongly typed object that can be passed directly to the journal but in order to do this we require an extensive refactoring of the WASIX syscalls which is not in scope at this time.

Separating this out now makes it easier to eliminate later without hurting the journal event abstraction through leaking abstraction layers.

Implementations§

source§

impl JournalEffector

source

pub fn save_chdir( ctx: &mut FunctionEnvMut<'_, WasiEnv>, path: String, ) -> Result<()>

source

pub fn apply_chdir( ctx: &mut FunctionEnvMut<'_, WasiEnv>, path: &str, ) -> Result<()>

source§

impl JournalEffector

source

pub fn save_clock_time_set( ctx: &mut FunctionEnvMut<'_, WasiEnv>, clock_id: Snapshot0Clockid, time: Timestamp, ) -> Result<()>

source

pub fn apply_clock_time_set( ctx: &mut FunctionEnvMut<'_, WasiEnv>, clock_id: Snapshot0Clockid, time: Timestamp, ) -> Result<()>

source§

impl JournalEffector

source

pub fn save_epoll_create( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, ) -> Result<()>

source

pub fn apply_epoll_create( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, ) -> Result<()>

source§

impl JournalEffector

source

pub fn save_epoll_ctl( ctx: &mut FunctionEnvMut<'_, WasiEnv>, epfd: Fd, op: EpollCtl, fd: Fd, event: Option<EpollEventCtl>, ) -> Result<()>

source

pub fn apply_epoll_ctl( ctx: &mut FunctionEnvMut<'_, WasiEnv>, pfd: Fd, op: EpollCtl, fd: Fd, event: Option<EpollEventCtl>, ) -> Result<()>

source§

impl JournalEffector

source

pub fn save_fd_advise( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, offset: Filesize, len: Filesize, advice: Advice, ) -> Result<()>

source

pub fn apply_fd_advise( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, offset: Filesize, len: Filesize, advice: Advice, ) -> Result<()>

source§

impl JournalEffector

source

pub fn save_fd_allocate( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, offset: Filesize, len: Filesize, ) -> Result<()>

source

pub fn apply_fd_allocate( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, offset: Filesize, len: Filesize, ) -> Result<()>

source§

impl JournalEffector

source

pub fn save_fd_close( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, ) -> Result<()>

source

pub fn apply_fd_close( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, ) -> Result<()>

source§

impl JournalEffector

source

pub fn save_fd_duplicate( ctx: &mut FunctionEnvMut<'_, WasiEnv>, original_fd: Fd, copied_fd: Fd, ) -> Result<()>

source

pub fn apply_fd_duplicate( ctx: &mut FunctionEnvMut<'_, WasiEnv>, original_fd: Fd, copied_fd: Fd, ) -> Result<()>

source§

impl JournalEffector

source

pub fn save_fd_event( ctx: &mut FunctionEnvMut<'_, WasiEnv>, initial_val: u64, flags: EventFdFlags, fd: Fd, ) -> Result<()>

source

pub fn apply_fd_event( ctx: &mut FunctionEnvMut<'_, WasiEnv>, initial_val: u64, flags: EventFdFlags, fd: Fd, ) -> Result<()>

source§

impl JournalEffector

source

pub fn save_fd_pipe( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd1: Fd, fd2: Fd, ) -> Result<()>

source

pub fn apply_fd_pipe( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd1: Fd, fd2: Fd, ) -> Result<()>

source§

impl JournalEffector

source

pub fn save_fd_renumber( ctx: &mut FunctionEnvMut<'_, WasiEnv>, from: Fd, to: Fd, ) -> Result<()>

source

pub fn apply_fd_renumber( ctx: &mut FunctionEnvMut<'_, WasiEnv>, from: Fd, to: Fd, ) -> Result<()>

source§

impl JournalEffector

source

pub fn save_fd_seek( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, offset: i64, whence: Whence, ) -> Result<()>

source

pub fn apply_fd_seek( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, offset: i64, whence: Whence, ) -> Result<()>

source§

impl JournalEffector

source

pub fn save_fd_set_flags( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, flags: Fdflags, ) -> Result<()>

source

pub fn apply_fd_set_flags( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, flags: Fdflags, ) -> Result<()>

source§

impl JournalEffector

source

pub fn save_fd_set_rights( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, fs_rights_base: Rights, fs_rights_inheriting: Rights, ) -> Result<()>

source

pub fn apply_fd_set_rights( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, fs_rights_base: Rights, fs_rights_inheriting: Rights, ) -> Result<()>

source§

impl JournalEffector

source

pub fn save_fd_set_size( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, st_size: Filesize, ) -> Result<()>

source

pub fn apply_fd_set_size( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, st_size: Filesize, ) -> Result<()>

source§

impl JournalEffector

source

pub fn save_fd_set_times( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, st_atim: Timestamp, st_mtim: Timestamp, fst_flags: Fstflags, ) -> Result<()>

source

pub fn apply_fd_set_times( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, st_atim: Timestamp, st_mtim: Timestamp, fst_flags: Fstflags, ) -> Result<()>

source§

impl JournalEffector

source

pub fn save_fd_write<M: MemorySize>( ctx: &FunctionEnvMut<'_, WasiEnv>, fd: Fd, offset: u64, written: usize, iovs: WasmPtr<__wasi_ciovec_t<M>, M>, iovs_len: M::Offset, ) -> Result<()>

source

pub fn apply_fd_write<M: MemorySize>( ctx: &FunctionEnvMut<'_, WasiEnv>, fd: Fd, offset: u64, data: Cow<'_, [u8]>, ) -> Result<()>

source§

impl JournalEffector

source

pub fn save_path_create_directory( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, path: String, ) -> Result<()>

source

pub fn apply_path_create_directory( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, path: &str, ) -> Result<()>

source§

impl JournalEffector

source§

impl JournalEffector

source

pub fn save_path_open( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, dirfd: Fd, dirflags: LookupFlags, path: String, o_flags: Oflags, fs_rights_base: Rights, fs_rights_inheriting: Rights, fs_flags: Fdflags, ) -> Result<()>

source

pub fn apply_path_open( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, dirfd: Fd, dirflags: LookupFlags, path: &str, o_flags: Oflags, fs_rights_base: Rights, fs_rights_inheriting: Rights, fs_flags: Fdflags, ) -> Result<()>

source§

impl JournalEffector

source

pub fn save_path_remove_directory( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, path: String, ) -> Result<()>

source

pub fn apply_path_remove_directory( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, path: &str, ) -> Result<()>

source§

impl JournalEffector

source

pub fn save_path_rename( ctx: &mut FunctionEnvMut<'_, WasiEnv>, old_fd: Fd, old_path: String, new_fd: Fd, new_path: String, ) -> Result<()>

source

pub fn apply_path_rename( ctx: &mut FunctionEnvMut<'_, WasiEnv>, old_fd: Fd, old_path: &str, new_fd: Fd, new_path: &str, ) -> Result<()>

source§

impl JournalEffector

source

pub fn save_path_set_times( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, flags: LookupFlags, path: String, st_atim: Timestamp, st_mtim: Timestamp, fst_flags: Fstflags, ) -> Result<()>

source

pub fn apply_path_set_times( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, flags: LookupFlags, path: &str, st_atim: Timestamp, st_mtim: Timestamp, fst_flags: Fstflags, ) -> Result<()>

source§

impl JournalEffector

source§

impl JournalEffector

source§

impl JournalEffector

source

pub fn save_port_addr_add( ctx: &mut FunctionEnvMut<'_, WasiEnv>, cidr: IpCidr, ) -> Result<()>

source

pub fn apply_port_addr_add( ctx: &mut FunctionEnvMut<'_, WasiEnv>, cidr: IpCidr, ) -> Result<()>

source§

impl JournalEffector

source§

impl JournalEffector

source

pub fn save_port_addr_remove( ctx: &mut FunctionEnvMut<'_, WasiEnv>, addr: IpAddr, ) -> Result<()>

source

pub fn apply_port_addr_remove( ctx: &mut FunctionEnvMut<'_, WasiEnv>, addr: IpAddr, ) -> Result<()>

source§

impl JournalEffector

source

pub fn save_port_bridge( ctx: &mut FunctionEnvMut<'_, WasiEnv>, network: String, token: String, security: StreamSecurity, ) -> Result<()>

source

pub fn apply_port_bridge( ctx: &mut FunctionEnvMut<'_, WasiEnv>, network: &str, token: &str, security: StreamSecurity, ) -> Result<()>

source§

impl JournalEffector

source§

impl JournalEffector

source§

impl JournalEffector

source

pub fn save_port_route_add( ctx: &mut FunctionEnvMut<'_, WasiEnv>, cidr: IpCidr, via_router: IpAddr, preferred_until: Option<Duration>, expires_at: Option<Duration>, ) -> Result<()>

source

pub fn apply_port_route_add( ctx: &mut FunctionEnvMut<'_, WasiEnv>, cidr: IpCidr, via_router: IpAddr, preferred_until: Option<Duration>, expires_at: Option<Duration>, ) -> Result<()>

source§

impl JournalEffector

source§

impl JournalEffector

source§

impl JournalEffector

source§

impl JournalEffector

source

pub fn save_sock_accepted( ctx: &mut FunctionEnvMut<'_, WasiEnv>, listen_fd: Fd, fd: Fd, addr: SocketAddr, peer_addr: SocketAddr, fd_flags: Fdflags, nonblocking: bool, ) -> Result<()>

source

pub fn apply_sock_accepted( ctx: &mut FunctionEnvMut<'_, WasiEnv>, _listen_fd: Fd, fd: Fd, addr: SocketAddr, peer_addr: SocketAddr, fd_flags: Fdflags, nonblocking: bool, ) -> Result<()>

source§

impl JournalEffector

source

pub fn save_sock_bind( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, addr: SocketAddr, ) -> Result<()>

source

pub fn apply_sock_bind( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, addr: SocketAddr, ) -> Result<()>

source§

impl JournalEffector

source

pub fn save_sock_connect( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, local_addr: SocketAddr, peer_addr: SocketAddr, ) -> Result<()>

source

pub fn apply_sock_connect( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, local_addr: SocketAddr, peer_addr: SocketAddr, dead: bool, ) -> Result<()>

source§

impl JournalEffector

source

pub fn save_sock_join_ipv4_multicast( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, multiaddr: Ipv4Addr, iface: Ipv4Addr, ) -> Result<()>

source

pub fn apply_sock_join_ipv4_multicast( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, multiaddr: Ipv4Addr, iface: Ipv4Addr, ) -> Result<()>

source§

impl JournalEffector

source

pub fn save_sock_join_ipv6_multicast( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, multiaddr: Ipv6Addr, iface: u32, ) -> Result<()>

source

pub fn apply_sock_join_ipv6_multicast( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, multiaddr: Ipv6Addr, iface: u32, ) -> Result<()>

source§

impl JournalEffector

source

pub fn save_sock_leave_ipv4_multicast( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, multiaddr: Ipv4Addr, iface: Ipv4Addr, ) -> Result<()>

source

pub fn apply_sock_leave_ipv4_multicast( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, multiaddr: Ipv4Addr, iface: Ipv4Addr, ) -> Result<()>

source§

impl JournalEffector

source

pub fn save_sock_leave_ipv6_multicast( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, multiaddr: Ipv6Addr, iface: u32, ) -> Result<()>

source

pub fn apply_sock_leave_ipv6_multicast( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, multiaddr: Ipv6Addr, iface: u32, ) -> Result<()>

source§

impl JournalEffector

source

pub fn save_sock_listen( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, backlog: usize, ) -> Result<()>

source

pub fn apply_sock_listen( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, backlog: usize, ) -> Result<()>

source§

impl JournalEffector

source

pub fn save_sock_open( ctx: &mut FunctionEnvMut<'_, WasiEnv>, af: Addressfamily, ty: Socktype, pt: SockProto, fd: Fd, ) -> Result<()>

source

pub fn apply_sock_open( ctx: &mut FunctionEnvMut<'_, WasiEnv>, af: Addressfamily, ty: Socktype, pt: SockProto, fd: Fd, ) -> Result<()>

source§

impl JournalEffector

source

pub fn save_sock_send<M: MemorySize>( ctx: &FunctionEnvMut<'_, WasiEnv>, fd: Fd, sent: usize, iovs: WasmPtr<__wasi_ciovec_t<M>, M>, iovs_len: M::Offset, si_flags: SiFlags, ) -> Result<()>

source

pub fn apply_sock_send<M: MemorySize>( ctx: &FunctionEnvMut<'_, WasiEnv>, sock: Fd, si_data: Cow<'_, [u8]>, si_flags: SiFlags, ) -> Result<()>

source§

impl JournalEffector

source

pub fn save_sock_send_file<M: MemorySize>( ctx: &mut FunctionEnvMut<'_, WasiEnv>, socket_fd: Fd, file_fd: Fd, offset: Filesize, count: Filesize, ) -> Result<()>

source

pub fn apply_sock_send_file( ctx: &mut FunctionEnvMut<'_, WasiEnv>, socket_fd: Fd, file_fd: Fd, offset: Filesize, count: Filesize, ) -> Result<()>

source§

impl JournalEffector

source

pub fn save_sock_send_to<M: MemorySize>( ctx: &FunctionEnvMut<'_, WasiEnv>, fd: Fd, sent: usize, iovs: WasmPtr<__wasi_ciovec_t<M>, M>, iovs_len: M::Offset, addr: SocketAddr, si_flags: SiFlags, ) -> Result<()>

source

pub fn apply_sock_send_to<M: MemorySize>( ctx: &FunctionEnvMut<'_, WasiEnv>, sock: Fd, si_data: Cow<'_, [u8]>, si_flags: SiFlags, addr: SocketAddr, ) -> Result<()>

source§

impl JournalEffector

source

pub fn save_sock_set_opt_flag( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, opt: Sockoption, flag: bool, ) -> Result<()>

source

pub fn apply_sock_set_opt_flag( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, opt: Sockoption, flag: bool, ) -> Result<()>

source§

impl JournalEffector

source

pub fn save_sock_set_opt_size( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, opt: Sockoption, size: Filesize, ) -> Result<()>

source

pub fn apply_sock_set_opt_size( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, opt: Sockoption, size: Filesize, ) -> Result<()>

source§

impl JournalEffector

source

pub fn save_sock_set_opt_time( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, ty: TimeType, time: Option<Duration>, ) -> Result<()>

source

pub fn apply_sock_set_opt_time( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, ty: TimeType, time: Option<Duration>, ) -> Result<()>

source§

impl JournalEffector

source

pub fn save_sock_shutdown( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, shutdown: Shutdown, ) -> Result<()>

source

pub fn apply_sock_shutdown( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, shutdown: Shutdown, ) -> Result<()>

source§

impl JournalEffector

source

pub fn save_tty_set( ctx: &mut FunctionEnvMut<'_, WasiEnv>, state: WasiTtyState, ) -> Result<()>

source

pub fn apply_tty_set( ctx: &mut FunctionEnvMut<'_, WasiEnv>, state: WasiTtyState, ) -> Result<()>

source§

impl JournalEffector

source

pub fn save_memory_and_snapshot( ctx: &mut FunctionEnvMut<'_, WasiEnv>, guard: &mut MutexGuard<'_, WasiProcessInner>, trigger: SnapshotTrigger, ) -> Result<()>

source

pub unsafe fn apply_compressed_memory( ctx: &mut FunctionEnvMut<'_, WasiEnv>, region: Range<u64>, compressed_data: &[u8], ) -> Result<()>

§Safety

This function manipulates the memory of the process and thus must be executed by the WASM process thread itself.

source§

impl JournalEffector

source

pub fn save_process_exit( env: &WasiEnv, exit_code: Option<ExitCode>, ) -> Result<()>

source

pub unsafe fn apply_process_exit( ctx: &mut FunctionEnvMut<'_, WasiEnv>, exit_code: Option<ExitCode>, ) -> Result<()>

§Safety

This function manipulates the memory of the process and thus must be executed by the WASM process thread itself.

source§

impl JournalEffector

source

pub(crate) fn save_event( ctx: &mut FunctionEnvMut<'_, WasiEnv>, event: JournalEntry<'_>, ) -> Result<()>

source§

impl JournalEffector

source

pub fn save_thread_exit( env: &WasiEnv, id: WasiThreadId, exit_code: Option<ExitCode>, ) -> Result<()>

source

pub fn apply_thread_exit( ctx: &mut FunctionEnvMut<'_, WasiEnv>, tid: WasiThreadId, exit_code: Option<ExitCode>, ) -> Result<()>

source§

impl JournalEffector

source

pub fn save_thread_state<M: MemorySize>( ctx: &mut FunctionEnvMut<'_, WasiEnv>, id: WasiThreadId, memory_stack: Bytes, rewind_stack: Bytes, store_data: Bytes, start: ThreadStartType, layout: WasiMemoryLayout, ) -> Result<()>

source

pub fn apply_thread_state<M: MemorySize>( ctx: &mut FunctionEnvMut<'_, WasiEnv>, tid: WasiThreadId, memory_stack: Bytes, rewind_stack: Bytes, store_data: Bytes, start: ThreadStartType, layout: WasiMemoryLayout, ) -> Result<()>

This will take the supplied stacks and apply them to the memory region dedicated to this thread. After that it will spawn a WASM thread and

Trait Implementations§

source§

impl Clone for JournalEffector

source§

fn clone(&self) -> JournalEffector

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for JournalEffector

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> ArchivePointee for T

§

type ArchivedMetadata = ()

The archived version of the pointer metadata for this type.
§

fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata

Converts some archived metadata to the pointer metadata for itself.
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

default unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> DynClone for T
where T: Clone,

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
§

impl<T> LayoutRaw for T

§

fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>

Returns the layout of the type.
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
§

impl<T> Pointee for T

§

type Metadata = ()

The metadata type for pointers and references to this type.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> Upcastable for T
where T: Any + Debug + 'static,

§

fn upcast_any_ref(&self) -> &(dyn Any + 'static)

§

fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)

§

fn upcast_any_box(self: Box<T>) -> Box<dyn Any>

§

impl<T> Upcastable for T
where T: Any + Send + Sync + 'static,

§

fn upcast_any_ref(&self) -> &(dyn Any + 'static)

upcast ref
§

fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)

upcast mut ref
§

fn upcast_any_box(self: Box<T>) -> Box<dyn Any>

upcast boxed dyn
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

impl<A, B, T> HttpServerConnExec<A, B> for T
where B: Body,