pub enum Binding {
None,
PerPlatform,
Fixed {
filename: &'static str,
source: &'static str,
},
PerPlatformFiles {
cloudflare: (&'static str, &'static str),
node: (&'static str, &'static str),
browser: (&'static str, &'static str),
},
}Expand description
The TypeScript binding the toolchain supplies for a first-party unit.
Variants§
None
A commons: Bynk-written, so nothing to bind.
PerPlatform
One binding per Platform (Platform::bynk_binding_filename and
Platform::bynk_binding_source): the portable bynk surface.
Fixed
A single binding, for a platform-native adapter that runs only on its own
platform (the platform lock rejects every other --platform).
PerPlatformFiles
One binding file per Platform, each with its own name and source, for a
platform-free unit whose binding differs where the platforms do
(bynk.crypto). Binding::PerPlatform stays the bynk surface’s.
Trait Implementations§
impl Copy for Binding
impl Eq for Binding
impl StructuralPartialEq for Binding
Auto Trait Implementations§
impl Freeze for Binding
impl RefUnwindSafe for Binding
impl Send for Binding
impl Sync for Binding
impl Unpin for Binding
impl UnsafeUnpin for Binding
impl UnwindSafe for Binding
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