wasmer_journal

Enum JournalEntry

Source
pub enum JournalEntry<'a> {
Show 59 variants InitModuleV1 { wasm_hash: Box<[u8]>, }, ClearEtherealV1, UpdateMemoryRegionV1 { region: Range<u64>, compressed_data: Cow<'a, [u8]>, }, ProcessExitV1 { exit_code: Option<ExitCode>, }, SetThreadV1 { id: u32, call_stack: Cow<'a, [u8]>, memory_stack: Cow<'a, [u8]>, store_data: Cow<'a, [u8]>, start: ThreadStartType, layout: WasiMemoryLayout, is_64bit: bool, }, CloseThreadV1 { id: u32, exit_code: Option<ExitCode>, }, FileDescriptorSeekV1 { fd: u32, offset: FileDelta, whence: Whence, }, FileDescriptorWriteV1 { fd: u32, offset: u64, data: Cow<'a, [u8]>, is_64bit: bool, }, SetClockTimeV1 { clock_id: Snapshot0Clockid, time: Timestamp, }, CloseFileDescriptorV1 { fd: u32, }, OpenFileDescriptorV1 { fd: u32, dirfd: u32, dirflags: LookupFlags, path: Cow<'a, str>, o_flags: Oflags, fs_rights_base: Rights, fs_rights_inheriting: Rights, fs_flags: Fdflags, }, RenumberFileDescriptorV1 { old_fd: u32, new_fd: u32, }, DuplicateFileDescriptorV1 { original_fd: u32, copied_fd: u32, }, CreateDirectoryV1 { fd: u32, path: Cow<'a, str>, }, RemoveDirectoryV1 { fd: u32, path: Cow<'a, str>, }, PathSetTimesV1 { fd: u32, flags: LookupFlags, path: Cow<'a, str>, st_atim: Timestamp, st_mtim: Timestamp, fst_flags: Fstflags, }, FileDescriptorSetTimesV1 { fd: u32, st_atim: Timestamp, st_mtim: Timestamp, fst_flags: Fstflags, }, FileDescriptorSetFlagsV1 { fd: u32, flags: Fdflags, }, FileDescriptorSetRightsV1 { fd: u32, fs_rights_base: Rights, fs_rights_inheriting: Rights, }, FileDescriptorSetSizeV1 { fd: u32, st_size: Filesize, }, FileDescriptorAdviseV1 { fd: u32, offset: Filesize, len: Filesize, advice: Advice, }, FileDescriptorAllocateV1 { fd: u32, offset: Filesize, len: Filesize, }, CreateHardLinkV1 { old_fd: u32, old_path: Cow<'a, str>, old_flags: LookupFlags, new_fd: u32, new_path: Cow<'a, str>, }, CreateSymbolicLinkV1 { old_path: Cow<'a, str>, fd: u32, new_path: Cow<'a, str>, }, UnlinkFileV1 { fd: u32, path: Cow<'a, str>, }, PathRenameV1 { old_fd: u32, old_path: Cow<'a, str>, new_fd: u32, new_path: Cow<'a, str>, }, ChangeDirectoryV1 { path: Cow<'a, str>, }, EpollCreateV1 { fd: u32, }, EpollCtlV1 { epfd: u32, op: EpollCtl, fd: u32, event: Option<EpollEventCtl>, }, TtySetV1 { tty: Tty, line_feeds: bool, }, CreatePipeV1 { fd1: u32, fd2: u32, }, CreateEventV1 { initial_val: u64, flags: EventFdFlags, fd: u32, }, PortAddAddrV1 { cidr: IpCidr, }, PortDelAddrV1 { addr: IpAddr, }, PortAddrClearV1, PortBridgeV1 { network: Cow<'a, str>, token: Cow<'a, str>, security: StreamSecurity, }, PortUnbridgeV1, PortDhcpAcquireV1, PortGatewaySetV1 { ip: IpAddr, }, PortRouteAddV1 { cidr: IpCidr, via_router: IpAddr, preferred_until: Option<Duration>, expires_at: Option<Duration>, }, PortRouteClearV1, PortRouteDelV1 { ip: IpAddr, }, SocketOpenV1 { af: Addressfamily, ty: Socktype, pt: SockProto, fd: u32, }, SocketListenV1 { fd: u32, backlog: u32, }, SocketBindV1 { fd: u32, addr: SocketAddr, }, SocketConnectedV1 { fd: u32, local_addr: SocketAddr, peer_addr: SocketAddr, }, SocketAcceptedV1 { listen_fd: u32, fd: u32, local_addr: SocketAddr, peer_addr: SocketAddr, fd_flags: Fdflags, non_blocking: bool, }, SocketJoinIpv4MulticastV1 { fd: u32, multiaddr: Ipv4Addr, iface: Ipv4Addr, }, SocketJoinIpv6MulticastV1 { fd: u32, multi_addr: Ipv6Addr, iface: u32, }, SocketLeaveIpv4MulticastV1 { fd: u32, multi_addr: Ipv4Addr, iface: Ipv4Addr, }, SocketLeaveIpv6MulticastV1 { fd: u32, multi_addr: Ipv6Addr, iface: u32, }, SocketSendFileV1 { socket_fd: u32, file_fd: u32, offset: Filesize, count: Filesize, }, SocketSendToV1 { fd: u32, data: Cow<'a, [u8]>, flags: SiFlags, addr: SocketAddr, is_64bit: bool, }, SocketSendV1 { fd: u32, data: Cow<'a, [u8]>, flags: SiFlags, is_64bit: bool, }, SocketSetOptFlagV1 { fd: u32, opt: Sockoption, flag: bool, }, SocketSetOptSizeV1 { fd: u32, opt: Sockoption, size: u64, }, SocketSetOptTimeV1 { fd: u32, ty: SocketOptTimeType, time: Option<Duration>, }, SocketShutdownV1 { fd: u32, how: SocketShutdownHow, }, SnapshotV1 { when: SystemTime, trigger: SnapshotTrigger, },
}
Expand description

Represents a log entry in a snapshot log stream that represents the total state of a WASM process at a point in time.

Variants§

§

InitModuleV1

Fields

§wasm_hash: Box<[u8]>
§

ClearEtherealV1

§

UpdateMemoryRegionV1

Fields

§region: Range<u64>
§compressed_data: Cow<'a, [u8]>
§

ProcessExitV1

Fields

§exit_code: Option<ExitCode>
§

SetThreadV1

Fields

§id: u32
§call_stack: Cow<'a, [u8]>
§memory_stack: Cow<'a, [u8]>
§store_data: Cow<'a, [u8]>
§is_64bit: bool
§

CloseThreadV1

Fields

§id: u32
§exit_code: Option<ExitCode>
§

FileDescriptorSeekV1

Fields

§fd: u32
§offset: FileDelta
§whence: Whence
§

FileDescriptorWriteV1

Fields

§fd: u32
§offset: u64
§data: Cow<'a, [u8]>
§is_64bit: bool
§

SetClockTimeV1

Fields

§

CloseFileDescriptorV1

Fields

§fd: u32
§

OpenFileDescriptorV1

Fields

§fd: u32
§dirfd: u32
§dirflags: LookupFlags
§path: Cow<'a, str>
§o_flags: Oflags
§fs_rights_base: Rights
§fs_rights_inheriting: Rights
§fs_flags: Fdflags
§

RenumberFileDescriptorV1

Fields

§old_fd: u32
§new_fd: u32
§

DuplicateFileDescriptorV1

Fields

§original_fd: u32
§copied_fd: u32
§

CreateDirectoryV1

Fields

§fd: u32
§path: Cow<'a, str>
§

RemoveDirectoryV1

Fields

§fd: u32
§path: Cow<'a, str>
§

PathSetTimesV1

Fields

§fd: u32
§path: Cow<'a, str>
§st_atim: Timestamp
§st_mtim: Timestamp
§fst_flags: Fstflags
§

FileDescriptorSetTimesV1

Fields

§fd: u32
§st_atim: Timestamp
§st_mtim: Timestamp
§fst_flags: Fstflags
§

FileDescriptorSetFlagsV1

Fields

§fd: u32
§flags: Fdflags
§

FileDescriptorSetRightsV1

Fields

§fd: u32
§fs_rights_base: Rights
§fs_rights_inheriting: Rights
§

FileDescriptorSetSizeV1

Fields

§fd: u32
§st_size: Filesize
§

FileDescriptorAdviseV1

Fields

§fd: u32
§offset: Filesize
§advice: Advice
§

FileDescriptorAllocateV1

Fields

§fd: u32
§offset: Filesize
§

CreateHardLinkV1

Fields

§old_fd: u32
§old_path: Cow<'a, str>
§old_flags: LookupFlags
§new_fd: u32
§new_path: Cow<'a, str>
§

CreateSymbolicLinkV1

Fields

§old_path: Cow<'a, str>
§fd: u32
§new_path: Cow<'a, str>
§

UnlinkFileV1

Fields

§fd: u32
§path: Cow<'a, str>
§

PathRenameV1

Fields

§old_fd: u32
§old_path: Cow<'a, str>
§new_fd: u32
§new_path: Cow<'a, str>
§

ChangeDirectoryV1

Fields

§path: Cow<'a, str>
§

EpollCreateV1

Fields

§fd: u32
§

EpollCtlV1

Fields

§epfd: u32
§fd: u32
§

TtySetV1

Fields

§tty: Tty
§line_feeds: bool
§

CreatePipeV1

Fields

§fd1: u32
§fd2: u32
§

CreateEventV1

Fields

§initial_val: u64
§fd: u32
§

PortAddAddrV1

Fields

§cidr: IpCidr
§

PortDelAddrV1

Fields

§addr: IpAddr
§

PortAddrClearV1

§

PortBridgeV1

Fields

§network: Cow<'a, str>
§token: Cow<'a, str>
§

PortUnbridgeV1

§

PortDhcpAcquireV1

§

PortGatewaySetV1

Fields

§

PortRouteAddV1

Fields

§cidr: IpCidr
§via_router: IpAddr
§preferred_until: Option<Duration>
§expires_at: Option<Duration>
§

PortRouteClearV1

§

PortRouteDelV1

Fields

§

SocketOpenV1

§

SocketListenV1

Fields

§fd: u32
§backlog: u32
§

SocketBindV1

Fields

§fd: u32
§

SocketConnectedV1

Fields

§fd: u32
§local_addr: SocketAddr
§peer_addr: SocketAddr
§

SocketAcceptedV1

Fields

§listen_fd: u32
§fd: u32
§local_addr: SocketAddr
§peer_addr: SocketAddr
§fd_flags: Fdflags
§non_blocking: bool
§

SocketJoinIpv4MulticastV1

Fields

§fd: u32
§multiaddr: Ipv4Addr
§iface: Ipv4Addr
§

SocketJoinIpv6MulticastV1

Fields

§fd: u32
§multi_addr: Ipv6Addr
§iface: u32
§

SocketLeaveIpv4MulticastV1

Fields

§fd: u32
§multi_addr: Ipv4Addr
§iface: Ipv4Addr
§

SocketLeaveIpv6MulticastV1

Fields

§fd: u32
§multi_addr: Ipv6Addr
§iface: u32
§

SocketSendFileV1

Fields

§socket_fd: u32
§file_fd: u32
§offset: Filesize
§count: Filesize
§

SocketSendToV1

Fields

§fd: u32
§data: Cow<'a, [u8]>
§flags: SiFlags
§is_64bit: bool
§

SocketSendV1

Fields

§fd: u32
§data: Cow<'a, [u8]>
§flags: SiFlags
§is_64bit: bool
§

SocketSetOptFlagV1

Fields

§fd: u32
§flag: bool
§

SocketSetOptSizeV1

Fields

§fd: u32
§size: u64
§

SocketSetOptTimeV1

§

SocketShutdownV1

§

SnapshotV1

Represents the marker for the end of a snapshot

Fields

Implementations§

Source§

impl<'a> JournalEntry<'a>

Source§

impl<'a> JournalEntry<'a>

Source

pub fn into_owned(self) -> JournalEntry<'static>

Source

pub fn estimate_size(&self) -> usize

Trait Implementations§

Source§

impl<'a> Clone for JournalEntry<'a>

Source§

fn clone(&self) -> JournalEntry<'a>

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<'a> Debug for JournalEntry<'a>

Source§

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

Formats the value using the given formatter. Read more
Source§

impl<'de, 'a> Deserialize<'de> for JournalEntry<'a>

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl<'a> Display for JournalEntry<'a>

Source§

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

Formats the value using the given formatter. Read more
Source§

impl<'a> PartialEq for JournalEntry<'a>

Source§

fn eq(&self, other: &JournalEntry<'a>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<'a> Serialize for JournalEntry<'a>

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<'a> TryFrom<ArchivedJournalEntry<'a>> for JournalEntry<'a>

Source§

type Error = Error

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

fn try_from(value: ArchivedJournalEntry<'a>) -> Result<Self>

Performs the conversion.
Source§

impl<'a> StructuralPartialEq for JournalEntry<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for JournalEntry<'a>

§

impl<'a> RefUnwindSafe for JournalEntry<'a>

§

impl<'a> Send for JournalEntry<'a>

§

impl<'a> Sync for JournalEntry<'a>

§

impl<'a> Unpin for JournalEntry<'a>

§

impl<'a> UnwindSafe for JournalEntry<'a>

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
Source§

impl<T> ArchivePointee for T

Source§

type ArchivedMetadata = ()

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

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§

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> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

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

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

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> LayoutRaw for T

Source§

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

Returns the layout of the type.
Source§

impl<T> Pointee for T

Source§

type Metadata = ()

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

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

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

Source§

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> ToString for T
where T: Display + ?Sized,

Source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

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

Source§

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>,

Source§

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.
Source§

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

Source§

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

upcast ref
Source§

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

upcast mut ref
Source§

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

upcast boxed dyn
Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl<T> WithSubscriber for T

Source§

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
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

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

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,