Skip to main content

Crate bitwarden_ipc

Crate bitwarden_ipc 

Source
Expand description

ยงbitwarden-ipc

Modulesยง

constants ๐Ÿ”’
discover
Discover
endpoint ๐Ÿ”’
error ๐Ÿ”’
ipc_client ๐Ÿ”’
ipc_client_ext ๐Ÿ”’
ipc_client_trait ๐Ÿ”’
message ๐Ÿ”’
rpc ๐Ÿ”’
serde_utils ๐Ÿ”’
Global serialization and deserialization utilities for IPC messages. This module provides functions to serialize and deserialize IPC messages in one place, ensuring consistency and reducing code duplication across the IPC crate.
traits ๐Ÿ”’
wasm
Re-export types to make sure wasm_bindgen picks them up

Structsยง

IncomingMessage
An untyped IPC message received from another endpoint.
IpcClientImpl
An IPC client that handles communication between different components and clients. It uses a crypto provider to encrypt and decrypt messages, a communication backend to send and receive messages, and a session repository to persist sessions.
IpcClientSubscription
A subscription to receive messages over IPC. The subcription will start buffering messages after its creation and return them when receive() is called. Messages received before the subscription was created will not be returned.
IpcClientTypedSubscription
A subscription to receive messages over IPC. The subcription will start buffering messages after its creation and return them when receive() is called. Messages received before the subscription was created will not be returned.
NoEncryptionCryptoProvider
A no-op crypto provider that performs no encryption and simply passes messages through as-is.
NoopCommunicationBackend
A no-op implementation of the CommunicationBackend trait.
OutgoingMessage
An untyped IPC message to be sent to another endpoint.
SendError
Error returned by IpcClient::send. Wraps the underlying transport error as a string.
TestCommunicationBackend
A test implementation of the CommunicationBackend trait. Provides methods to inject incoming messages and inspect outgoing messages.
TypedIncomingMessage
A typed wrapper around IncomingMessage that stores the payload as a deserialized type.
TypedOutgoingMessage
A typed wrapper around OutgoingMessage that stores the payload as a deserialized type.

Enumsยง

Endpoint
IPC destination/source endpoint for SDK clients.
HostId
Identifies a host endpoint, one that manages connections for other endpoints.
ReceiveError
RequestError
Source
Describes the source of an incoming IPC message with per-variant metadata.
SubscribeError
TypedReceiveError

Traitsยง

IpcClient
Dyn-compatible trait for IPC client operations.
IpcClientExt
Extension trait providing generic convenience methods on any IpcClient.
PayloadTypeName
This trait is used to ensure that the payload type has a topic associated with it.
RpcHandler
Trait defining a handler for RPC requests. These can registered with the IPC client and will be used to handle incoming RPC requests.
RpcRequest
Trait representing an RPC request.

Type Aliasesยง

InMemorySessionRepository
An in-memory session repository implementation that stores sessions in a HashMap protected by an RwLock. This is a simple implementation that can be used for testing or in scenarios where persistence is not required.
TestIpcClient