Skip to main content

SeamServer

Struct SeamServer 

Source
pub struct SeamServer { /* private fields */ }

Implementations§

Source§

impl SeamServer

Source

pub fn new() -> Self

Source

pub fn procedure(self, proc: ProcedureDef) -> Self

Source

pub fn subscription(self, sub: SubscriptionDef) -> Self

Source

pub fn stream(self, stream: StreamDef) -> Self

Source

pub fn upload(self, upload: UploadDef) -> Self

Source

pub fn channel(self, channel: ChannelDef) -> Self

Source

pub fn namespace(self, prefix: &str, procedures: Vec<ProcedureDef>) -> Self

Register procedures under a dot-separated namespace prefix (e.g. “blog” -> “blog.getPost”).

Source

pub fn namespace_subs(self, prefix: &str, subs: Vec<SubscriptionDef>) -> Self

Register subscriptions under a dot-separated namespace prefix.

Source

pub fn namespace_streams(self, prefix: &str, streams: Vec<StreamDef>) -> Self

Register streams under a dot-separated namespace prefix.

Source

pub fn page(self, page: PageDef) -> Self

Source

pub fn rpc_hash_map(self, map: RpcHashMap) -> Self

Source

pub fn i18n_config(self, config: I18nConfig) -> Self

Source

pub fn public_dir(self, dir: PathBuf) -> Self

Source

pub fn build(self, build: BuildOutput) -> Self

Source

pub fn resolve_strategies( self, strategies: Vec<Box<dyn ResolveStrategy>>, ) -> Self

Source

pub fn context(self, key: &str, field: ContextFieldDef) -> Self

Source

pub fn validation_mode(self, mode: ValidationMode) -> Self

Source

pub fn transport_config(self, config: TransportConfig) -> Self

Source

pub fn into_parts(self) -> SeamParts

Consume the builder, returning framework-agnostic parts for an adapter. Channels are expanded into their Level 0 primitives (commands + subscriptions).

Trait Implementations§

Source§

impl Default for SeamServer

Source§

fn default() -> Self

Returns the “default value” for a type. 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
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> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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, 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> ParallelSend for T